package com.vm.osm.business;

import com.vma.eams.spring.boot.annotation.EnableEamsConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * Spring Boot应用类
 *
 * @author zhangsl
 */
@SpringBootApplication(scanBasePackages = "com.vm.osm.business.common.exception")
@ServletComponentScan
@MapperScan("com.vm.osm.business.dao")
@ComponentScan("com.vm.osm.business")
@EnableEamsConfiguration
public class OsmBusiness extends SpringBootServletInitializer{

    public static void main(String[] args) {
        SpringApplication.run(OsmBusiness.class, args);
    }


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
